package ysu.sxm.ptjc.pojo;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Description  
 * @Author  baodan_Fan 
 * @Date 2021-01-07 
 */

@Getter
@Setter
@ToString
@NoArgsConstructor
@EqualsAndHashCode
@Entity
@Table ( name ="defect_type_info" )
public class DefectTypeInfo implements Serializable {
	private static final long serialVersionUID =  4059247215480739563L;

	/**
	 * 产品编号
	 */
	@Id
	private String produceNum;

	/**
	 * 生产日期
	 */
	@Id
	private Timestamp produceDate;

	/**
	 * 熔铸缺陷id
	 */
   	@Column(name = "casting_defects_id" )
	private Long castingDefectsId;

	/**
	 * 挤出缺陷id
	 */
   	@Column(name = "extrusion_defect_id" )
	private Long extrusionDefectId;

	/**
	 * 机加工缺陷id
	 */
   	@Column(name = "machining_defects_id" )
	private Long machiningDefectsId;

	/**
	 * 抛光缺陷id
	 */
   	@Column(name = "polishing_defect_id" )
	private Long polishingDefectId;

	/**
	 * 氧化缺陷id
	 */
   	@Column(name = "oxidation_defect_id" )
	private Long oxidationDefectId;

	/**
	 * 组装缺陷id
	 */
   	@Column(name = "assembly_defect_id" )
	private Long assemblyDefectId;

	/**
	 * 腐蚀拉丝id
	 */
   	@Column(name = "cdp_defect_id" )
	private Long cdpDefectId;

	/**
	 * 缺陷程度(0返工 1报废）
	 */
   	@Column(name = "defect_degree" )
	private String defectDegree;

   	@Column(name = "produce_type")
	private String produceType;
	@Column(name = "line_id")
	private String lineId;

	public String getProduceType() {
		return produceType;
	}

	public void setProduceType(String produceType) {
		this.produceType = produceType;
	}

	public String getLineId() {
		return lineId;
	}

	public void setLineId(String lineId) {
		this.lineId = lineId;
	}

	public String getProduceNum() {
		return this.produceNum;
	}

	public void setProduceNum(String produceNum) {
		this.produceNum = produceNum;
	}

	public Timestamp getProduceDate() {
		return this.produceDate;
	}

	public void setProduceDate(Timestamp produceDate) {
		this.produceDate = produceDate;
	}

	public Long getCastingDefectsId() {
		return this.castingDefectsId;
	}

	public void setCastingDefectsId(Long castingDefectsId) {
		this.castingDefectsId = castingDefectsId;
	}

	public Long getExtrusionDefectId() {
		return this.extrusionDefectId;
	}

	public void setExtrusionDefectId(Long extrusionDefectId) {
		this.extrusionDefectId = extrusionDefectId;
	}

	public Long getMachiningDefectsId() {
		return this.machiningDefectsId;
	}

	public void setMachiningDefectsId(Long machiningDefectsId) {
		this.machiningDefectsId = machiningDefectsId;
	}

	public Long getPolishingDefectId() {
		return this.polishingDefectId;
	}

	public void setPolishingDefectId(Long polishingDefectId) {
		this.polishingDefectId = polishingDefectId;
	}

	public Long getOxidationDefectId() {
		return this.oxidationDefectId;
	}

	public void setOxidationDefectId(Long oxidationDefectId) {
		this.oxidationDefectId = oxidationDefectId;
	}

	public Long getAssemblyDefectId() {
		return this.assemblyDefectId;
	}

	public void setAssemblyDefectId(Long assemblyDefectId) {
		this.assemblyDefectId = assemblyDefectId;
	}

	public Long getCdpDefectId() {
		return this.cdpDefectId;
	}

	public void setCdpDefectId(Long cdpDefectId) {
		this.cdpDefectId = cdpDefectId;
	}

	public String getDefectDegree() {
		return this.defectDegree;
	}

	public void setDefectDegree(String defectDegree) {
		this.defectDegree = defectDegree;
	}

}
